
package ch.gibb.learnit.client.util.soap;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.7.4
 * 2013-05-13T18:26:57.568+02:00
 * Generated source version: 2.7.4
 * 
 */
public final class ILearnIT_BasicHttpBindingILearnIT_Client {

    private static final QName SERVICE_NAME = new QName("http://tempuri.org/", "LearnIT");

    private ILearnIT_BasicHttpBindingILearnIT_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = LearnIT.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        LearnIT ss = new LearnIT(wsdlURL, SERVICE_NAME);
        ILearnIT port = ss.getBasicHttpBindingILearnIT();  
        
        {
        System.out.println("Invoking responseWord...");
        ch.gibb.learnit.client.util.soap.User _responseWord_user = null;
        ch.gibb.learnit.client.util.soap.Word _responseWord_word = null;
        java.lang.Boolean _responseWord__return = port.responseWord(_responseWord_user, _responseWord_word);
        System.out.println("responseWord.result=" + _responseWord__return);


        }
        {
        System.out.println("Invoking getCategoryById...");
        ch.gibb.learnit.client.util.soap.User _getCategoryById_user = null;
        ch.gibb.learnit.client.util.soap.Category _getCategoryById_category = null;
        ch.gibb.learnit.client.util.soap.Category _getCategoryById__return = port.getCategoryById(_getCategoryById_user, _getCategoryById_category);
        System.out.println("getCategoryById.result=" + _getCategoryById__return);


        }
        {
        System.out.println("Invoking getAllWordsOfCat...");
        ch.gibb.learnit.client.util.soap.User _getAllWordsOfCat_user = null;
        ch.gibb.learnit.client.util.soap.Category _getAllWordsOfCat_category = null;
        ch.gibb.learnit.client.util.soap.ArrayOfWord _getAllWordsOfCat__return = port.getAllWordsOfCat(_getAllWordsOfCat_user, _getAllWordsOfCat_category);
        System.out.println("getAllWordsOfCat.result=" + _getAllWordsOfCat__return);


        }
        {
        System.out.println("Invoking getWord...");
        ch.gibb.learnit.client.util.soap.User _getWord_user = null;
        ch.gibb.learnit.client.util.soap.Word _getWord__return = port.getWord(_getWord_user);
        System.out.println("getWord.result=" + _getWord__return);


        }
        {
        System.out.println("Invoking addWord...");
        ch.gibb.learnit.client.util.soap.User _addWord_user = null;
        ch.gibb.learnit.client.util.soap.Category _addWord_category = null;
        ch.gibb.learnit.client.util.soap.Word _addWord_word = null;
        java.lang.Boolean _addWord__return = port.addWord(_addWord_user, _addWord_category, _addWord_word);
        System.out.println("addWord.result=" + _addWord__return);


        }
        {
        System.out.println("Invoking getDailyWordsCount...");
        ch.gibb.learnit.client.util.soap.User _getDailyWordsCount_user = null;
        java.lang.Integer _getDailyWordsCount__return = port.getDailyWordsCount(_getDailyWordsCount_user);
        System.out.println("getDailyWordsCount.result=" + _getDailyWordsCount__return);


        }
        {
        System.out.println("Invoking updateWord...");
        ch.gibb.learnit.client.util.soap.User _updateWord_user = null;
        ch.gibb.learnit.client.util.soap.Word _updateWord_word = null;
        java.lang.Boolean _updateWord__return = port.updateWord(_updateWord_user, _updateWord_word);
        System.out.println("updateWord.result=" + _updateWord__return);


        }
        {
        System.out.println("Invoking updateCategory...");
        ch.gibb.learnit.client.util.soap.User _updateCategory_user = null;
        ch.gibb.learnit.client.util.soap.Category _updateCategory_category = null;
        java.lang.Boolean _updateCategory__return = port.updateCategory(_updateCategory_user, _updateCategory_category);
        System.out.println("updateCategory.result=" + _updateCategory__return);


        }
        {
        System.out.println("Invoking removeCategories...");
        ch.gibb.learnit.client.util.soap.User _removeCategories_user = null;
        ch.gibb.learnit.client.util.soap.ArrayOfCategory _removeCategories_categories = null;
        java.lang.Boolean _removeCategories__return = port.removeCategories(_removeCategories_user, _removeCategories_categories);
        System.out.println("removeCategories.result=" + _removeCategories__return);


        }
        {
        System.out.println("Invoking removeWords...");
        ch.gibb.learnit.client.util.soap.User _removeWords_user = null;
        ch.gibb.learnit.client.util.soap.ArrayOfWord _removeWords_words = null;
        java.lang.Boolean _removeWords__return = port.removeWords(_removeWords_user, _removeWords_words);
        System.out.println("removeWords.result=" + _removeWords__return);


        }
        {
        System.out.println("Invoking getCategories...");
        ch.gibb.learnit.client.util.soap.User _getCategories_user = null;
        ch.gibb.learnit.client.util.soap.ArrayOfCategory _getCategories__return = port.getCategories(_getCategories_user);
        System.out.println("getCategories.result=" + _getCategories__return);


        }
        {
        System.out.println("Invoking getUser...");
        ch.gibb.learnit.client.util.soap.User _getUser_user = null;
        ch.gibb.learnit.client.util.soap.User _getUser__return = port.getUser(_getUser_user);
        System.out.println("getUser.result=" + _getUser__return);


        }
        {
        System.out.println("Invoking getWordOfCat...");
        ch.gibb.learnit.client.util.soap.User _getWordOfCat_user = null;
        ch.gibb.learnit.client.util.soap.Category _getWordOfCat_category = null;
        ch.gibb.learnit.client.util.soap.Word _getWordOfCat__return = port.getWordOfCat(_getWordOfCat_user, _getWordOfCat_category);
        System.out.println("getWordOfCat.result=" + _getWordOfCat__return);


        }
        {
        System.out.println("Invoking getWordById...");
        ch.gibb.learnit.client.util.soap.User _getWordById_user = null;
        ch.gibb.learnit.client.util.soap.Word _getWordById_word = null;
        ch.gibb.learnit.client.util.soap.Word _getWordById__return = port.getWordById(_getWordById_user, _getWordById_word);
        System.out.println("getWordById.result=" + _getWordById__return);


        }
        {
        System.out.println("Invoking login...");
        ch.gibb.learnit.client.util.soap.User _login_user = null;
        java.lang.Integer _login__return = port.login(_login_user);
        System.out.println("login.result=" + _login__return);


        }
        {
        System.out.println("Invoking updateUser...");
        ch.gibb.learnit.client.util.soap.User _updateUser_user = null;
        java.lang.Boolean _updateUser__return = port.updateUser(_updateUser_user);
        System.out.println("updateUser.result=" + _updateUser__return);


        }
        {
        System.out.println("Invoking resetPassword...");
        ch.gibb.learnit.client.util.soap.User _resetPassword_user = null;
        java.lang.String _resetPassword_pw = "";
        java.lang.Boolean _resetPassword__return = port.resetPassword(_resetPassword_user, _resetPassword_pw);
        System.out.println("resetPassword.result=" + _resetPassword__return);


        }
        {
        System.out.println("Invoking addCategory...");
        ch.gibb.learnit.client.util.soap.User _addCategory_user = null;
        ch.gibb.learnit.client.util.soap.Category _addCategory_category = null;
        java.lang.Boolean _addCategory__return = port.addCategory(_addCategory_user, _addCategory_category);
        System.out.println("addCategory.result=" + _addCategory__return);


        }
        {
        System.out.println("Invoking addUser...");
        ch.gibb.learnit.client.util.soap.User _addUser_user = null;
        java.lang.Integer _addUser__return = port.addUser(_addUser_user);
        System.out.println("addUser.result=" + _addUser__return);


        }
        {
        System.out.println("Invoking getAllWords...");
        ch.gibb.learnit.client.util.soap.User _getAllWords_user = null;
        ch.gibb.learnit.client.util.soap.ArrayOfWord _getAllWords__return = port.getAllWords(_getAllWords_user);
        System.out.println("getAllWords.result=" + _getAllWords__return);


        }

        System.exit(0);
    }

}
